<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>chigraph: lib/core/include/chi/NodeType.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="chigraphDoxygenIcon.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">chigraph
   &#160;<span id="projectnumber">master</span>
   </div>
   <div id="projectbrief">Systems programming language written for beginners in LLVM</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('NodeType_8hpp_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">NodeType.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="NodeType_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#ifndef CHI_NODE_TYPE_HPP</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#define CHI_NODE_TYPE_HPP</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;</div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &lt;memory&gt;</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &lt;unordered_map&gt;</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;</div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="core_2include_2chi_2Fwd_8hpp.html">chi/Fwd.hpp</a>&quot;</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &quot;chi/Support/json.hpp&quot;</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;</div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacechi.html">chi</a> {</div><div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="structchi_1_1NodeType.html">   19</a></span>&#160;<span class="keyword">struct </span><a class="code" href="structchi_1_1NodeType.html">NodeType</a> {</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;    <span class="keyword">friend</span> <a class="code" href="structchi_1_1NodeInstance.html">NodeInstance</a>;</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;    <a class="code" href="structchi_1_1NodeType.html#adad3e5e61bf72247980f1faac1407168">NodeType</a>(<a class="code" href="structchi_1_1ChiModule.html">ChiModule</a>&amp; mod, std::string <a class="code" href="structchi_1_1NodeType.html#ad301375a4b84ddc699337e285ee78cc3">name</a> = {}, std::string <a class="code" href="structchi_1_1NodeType.html#ad95669e221be70492040bc125f8f6d45">description</a> = {});</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="structchi_1_1NodeType.html#af39c95eff6c77ff04c049cbad9c787aa">~NodeType</a>();</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    std::string <a class="code" href="structchi_1_1NodeType.html#a7031e3c04e9a0227b09f8f854ce8b7f9">qualifiedName</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="structchi_1_1Result.html">Result</a> <a class="code" href="structchi_1_1NodeType.html#ac6662ce1a327258cd1f879b63cfbfa06">codegen</a>(<a class="code" href="structchi_1_1NodeCompiler.html">NodeCompiler</a>&amp; compiler, llvm::BasicBlock&amp; codegenInto,</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;                           <span class="keywordtype">size_t</span> execInputID, <span class="keyword">const</span> llvm::DebugLoc&amp; nodeLocation,</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;                           <span class="keyword">const</span> std::vector&lt;llvm::Value*&gt;&amp;      io,</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;                           <span class="keyword">const</span> std::vector&lt;llvm::BasicBlock*&gt;&amp; outputBlocks) = 0;</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="structchi_1_1NodeType.html#ac99bef32e3e5e564119dbb8de69d2273">   54</a></span>&#160;    <span class="keyword">virtual</span> nlohmann::json <a class="code" href="structchi_1_1NodeType.html#ac99bef32e3e5e564119dbb8de69d2273">toJSON</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> {}; }</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <span class="keyword">virtual</span> std::unique_ptr&lt;NodeType&gt; <a class="code" href="structchi_1_1NodeType.html#a9de5373607ac5fb322665c487010ecf2">clone</a>() <span class="keyword">const</span> = 0;</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="structchi_1_1NodeType.html#ad301375a4b84ddc699337e285ee78cc3">   61</a></span>&#160;    std::string <a class="code" href="structchi_1_1NodeType.html#ad301375a4b84ddc699337e285ee78cc3">name</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mName; }</div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="structchi_1_1NodeType.html#ad95669e221be70492040bc125f8f6d45">   64</a></span>&#160;    std::string <a class="code" href="structchi_1_1NodeType.html#ad95669e221be70492040bc125f8f6d45">description</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mDescription; }</div><div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="structchi_1_1NodeType.html#a4fd551737d6b3bb4d6609f1ee8e054aa">   67</a></span>&#160;    <a class="code" href="structchi_1_1ChiModule.html">ChiModule</a>&amp; <a class="code" href="structchi_1_1NodeType.html#a4fd551737d6b3bb4d6609f1ee8e054aa">module</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> *mModule; }</div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="structchi_1_1NodeType.html#ad1be22ec9f60f1d0918f16baad341af6">   70</a></span>&#160;    <a class="code" href="structchi_1_1Context.html">Context</a>&amp; <a class="code" href="structchi_1_1NodeType.html#ad1be22ec9f60f1d0918f16baad341af6">context</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> *mContext; }</div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="structchi_1_1NodeType.html#a7d2edfc21ff54a1ff8ad98fffb969268">   73</a></span>&#160;    <span class="keyword">const</span> std::vector&lt;NamedDataType&gt;&amp; <a class="code" href="structchi_1_1NodeType.html#a7d2edfc21ff54a1ff8ad98fffb969268">dataInputs</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mDataInputs; }</div><div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="structchi_1_1NodeType.html#aade37588d98e93b19a9a47e16c850684">   76</a></span>&#160;    <span class="keyword">const</span> std::vector&lt;NamedDataType&gt;&amp; <a class="code" href="structchi_1_1NodeType.html#aade37588d98e93b19a9a47e16c850684">dataOutputs</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mDataOutputs; }</div><div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="structchi_1_1NodeType.html#a436716b15e57346da8e824c157f926a5">   79</a></span>&#160;    <span class="keyword">const</span> std::vector&lt;std::string&gt;&amp; <a class="code" href="structchi_1_1NodeType.html#a436716b15e57346da8e824c157f926a5">execInputs</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mExecInputs; }</div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="structchi_1_1NodeType.html#ad64eac82c28fd530c943a4605a76c4af">   82</a></span>&#160;    <span class="keyword">const</span> std::vector&lt;std::string&gt;&amp; <a class="code" href="structchi_1_1NodeType.html#ad64eac82c28fd530c943a4605a76c4af">execOutputs</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> mExecOutputs; }</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div><div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="structchi_1_1NodeType.html#a0e5eb5e2862761cd67f3ff4761175dd5">   86</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="structchi_1_1NodeType.html#a0e5eb5e2862761cd67f3ff4761175dd5">pure</a>() { <span class="keywordflow">return</span> mPure; }</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    </div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="structchi_1_1NodeType.html#aebda978b1e727e868bba592a61bb79f7">   89</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="structchi_1_1NodeType.html#aebda978b1e727e868bba592a61bb79f7">converter</a>() { <span class="keywordflow">return</span> mConverter; }</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="structchi_1_1NodeType.html#a10040e688128ae57832b5d74f877d7f8">setDataInputs</a>(std::vector&lt;NamedDataType&gt; newInputs);</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="structchi_1_1NodeType.html#a8930cb5b0eeb371ddd5f6201d415cce8">setDataOutputs</a>(std::vector&lt;NamedDataType&gt; newOutputs);</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="structchi_1_1NodeType.html#aa56443539eb98affe4f99ead153602b6">setExecInputs</a>(std::vector&lt;std::string&gt; newInputs);</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="structchi_1_1NodeType.html#a1b28b4ea8dc3536633c72dbcc107c5c0">setExecOutputs</a>(std::vector&lt;std::string&gt; newOutputs);</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="structchi_1_1NodeType.html#a81a3e2d37acdb057c11282d3e1ea6bc1">setName</a>(std::string newName);</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="structchi_1_1NodeType.html#a51e055157f02937926552b750457d6b9">setDescription</a>(std::string newDesc);</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="structchi_1_1NodeType.html#a77693a4c560da85835a2bd666f0bc39d">makePure</a>();</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    </div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="structchi_1_1NodeType.html#a7d87ad6f9289fbbf76d7ef13498e78d1">makeConverter</a>();</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    <a class="code" href="structchi_1_1NodeInstance.html">NodeInstance</a>* <a class="code" href="structchi_1_1NodeType.html#adf8b95a4dc2a7a5253a71624a5d59ab3">nodeInstance</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;    <a class="code" href="structchi_1_1ChiModule.html">ChiModule</a>*  mModule;</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    <a class="code" href="structchi_1_1Context.html">Context</a>*    mContext;</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    std::string mName, mDescription;</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;</div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;    <a class="code" href="structchi_1_1NodeInstance.html">NodeInstance</a>* mNodeInstance = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    std::vector&lt;NamedDataType&gt; mDataInputs;</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    std::vector&lt;NamedDataType&gt; mDataOutputs;</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;    std::vector&lt;std::string&gt; mExecInputs;</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    std::vector&lt;std::string&gt; mExecOutputs;</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;    <span class="keywordtype">bool</span> mPure = <span class="keyword">false</span>;</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;    <span class="keywordtype">bool</span> mConverter = <span class="keyword">false</span>;</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;};</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;}  <span class="comment">// namespace chi</span></div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;<span class="preprocessor">#endif  // CHI_NODE_TYPE_HPP</span></div><div class="ttc" id="structchi_1_1NodeType_html_a436716b15e57346da8e824c157f926a5"><div class="ttname"><a href="structchi_1_1NodeType.html#a436716b15e57346da8e824c157f926a5">chi::NodeType::execInputs</a></div><div class="ttdeci">const std::vector&lt; std::string &gt; &amp; execInputs() const</div><div class="ttdoc">Get the execution inputs for the node. </div><div class="ttdef"><b>Definition:</b> <a href="NodeType_8hpp_source.html#l00079">NodeType.hpp:79</a></div></div>
<div class="ttc" id="structchi_1_1NodeType_html_a4fd551737d6b3bb4d6609f1ee8e054aa"><div class="ttname"><a href="structchi_1_1NodeType.html#a4fd551737d6b3bb4d6609f1ee8e054aa">chi::NodeType::module</a></div><div class="ttdeci">ChiModule &amp; module() const</div><div class="ttdoc">Get the ChiModule this NodeType belongs to. </div><div class="ttdef"><b>Definition:</b> <a href="NodeType_8hpp_source.html#l00067">NodeType.hpp:67</a></div></div>
<div class="ttc" id="core_2include_2chi_2Fwd_8hpp_html"><div class="ttname"><a href="core_2include_2chi_2Fwd_8hpp.html">Fwd.hpp</a></div><div class="ttdoc">Forward declares all the chigraph data types. </div></div>
<div class="ttc" id="structchi_1_1NodeType_html_ad1be22ec9f60f1d0918f16baad341af6"><div class="ttname"><a href="structchi_1_1NodeType.html#ad1be22ec9f60f1d0918f16baad341af6">chi::NodeType::context</a></div><div class="ttdeci">Context &amp; context() const</div><div class="ttdoc">Get the Context this NodeType belongs to. </div><div class="ttdef"><b>Definition:</b> <a href="NodeType_8hpp_source.html#l00070">NodeType.hpp:70</a></div></div>
<div class="ttc" id="structchi_1_1NodeType_html_aade37588d98e93b19a9a47e16c850684"><div class="ttname"><a href="structchi_1_1NodeType.html#aade37588d98e93b19a9a47e16c850684">chi::NodeType::dataOutputs</a></div><div class="ttdeci">const std::vector&lt; NamedDataType &gt; &amp; dataOutputs() const</div><div class="ttdoc">Get the data outputs for the node. </div><div class="ttdef"><b>Definition:</b> <a href="NodeType_8hpp_source.html#l00076">NodeType.hpp:76</a></div></div>
<div class="ttc" id="structchi_1_1NodeInstance_html"><div class="ttname"><a href="structchi_1_1NodeInstance.html">chi::NodeInstance</a></div><div class="ttdoc">An instance of a node. </div><div class="ttdef"><b>Definition:</b> <a href="NodeInstance_8hpp_source.html#l00019">NodeInstance.hpp:19</a></div></div>
<div class="ttc" id="structchi_1_1NodeType_html_a7d87ad6f9289fbbf76d7ef13498e78d1"><div class="ttname"><a href="structchi_1_1NodeType.html#a7d87ad6f9289fbbf76d7ef13498e78d1">chi::NodeType::makeConverter</a></div><div class="ttdeci">void makeConverter()</div><div class="ttdoc">Make this a converter node. </div><div class="ttdef"><b>Definition:</b> <a href="NodeType_8cpp_source.html#l00044">NodeType.cpp:44</a></div></div>
<div class="ttc" id="structchi_1_1NodeType_html_a51e055157f02937926552b750457d6b9"><div class="ttname"><a href="structchi_1_1NodeType.html#a51e055157f02937926552b750457d6b9">chi::NodeType::setDescription</a></div><div class="ttdeci">void setDescription(std::string newDesc)</div><div class="ttdoc">Set the description of the node. </div><div class="ttdef"><b>Definition:</b> <a href="NodeType_8cpp_source.html#l00056">NodeType.cpp:56</a></div></div>
<div class="ttc" id="structchi_1_1NodeType_html_aebda978b1e727e868bba592a61bb79f7"><div class="ttname"><a href="structchi_1_1NodeType.html#aebda978b1e727e868bba592a61bb79f7">chi::NodeType::converter</a></div><div class="ttdeci">bool converter()</div><div class="ttdoc">Get if this node is a converter. </div><div class="ttdef"><b>Definition:</b> <a href="NodeType_8hpp_source.html#l00089">NodeType.hpp:89</a></div></div>
<div class="ttc" id="structchi_1_1NodeType_html_ad301375a4b84ddc699337e285ee78cc3"><div class="ttname"><a href="structchi_1_1NodeType.html#ad301375a4b84ddc699337e285ee78cc3">chi::NodeType::name</a></div><div class="ttdeci">std::string name() const</div><div class="ttdoc">Get the name of the NodeType in the ChiModule. </div><div class="ttdef"><b>Definition:</b> <a href="NodeType_8hpp_source.html#l00061">NodeType.hpp:61</a></div></div>
<div class="ttc" id="structchi_1_1NodeType_html_ac99bef32e3e5e564119dbb8de69d2273"><div class="ttname"><a href="structchi_1_1NodeType.html#ac99bef32e3e5e564119dbb8de69d2273">chi::NodeType::toJSON</a></div><div class="ttdeci">virtual nlohmann::json toJSON() const</div><div class="ttdoc">Create the JSON necessary to store the object. </div><div class="ttdef"><b>Definition:</b> <a href="NodeType_8hpp_source.html#l00054">NodeType.hpp:54</a></div></div>
<div class="ttc" id="structchi_1_1NodeType_html_ad64eac82c28fd530c943a4605a76c4af"><div class="ttname"><a href="structchi_1_1NodeType.html#ad64eac82c28fd530c943a4605a76c4af">chi::NodeType::execOutputs</a></div><div class="ttdeci">const std::vector&lt; std::string &gt; &amp; execOutputs() const</div><div class="ttdoc">Get the execution outputs for the node. </div><div class="ttdef"><b>Definition:</b> <a href="NodeType_8hpp_source.html#l00082">NodeType.hpp:82</a></div></div>
<div class="ttc" id="structchi_1_1NodeType_html_a77693a4c560da85835a2bd666f0bc39d"><div class="ttname"><a href="structchi_1_1NodeType.html#a77693a4c560da85835a2bd666f0bc39d">chi::NodeType::makePure</a></div><div class="ttdeci">void makePure()</div><div class="ttdoc">Make this node pure For more info on what this means, see https://en.wikipedia.org/wiki/Pure_function...</div><div class="ttdef"><b>Definition:</b> <a href="NodeType_8cpp_source.html#l00037">NodeType.cpp:37</a></div></div>
<div class="ttc" id="structchi_1_1NodeType_html_ad95669e221be70492040bc125f8f6d45"><div class="ttname"><a href="structchi_1_1NodeType.html#ad95669e221be70492040bc125f8f6d45">chi::NodeType::description</a></div><div class="ttdeci">std::string description() const</div><div class="ttdoc">Get the description of the NodeType. </div><div class="ttdef"><b>Definition:</b> <a href="NodeType_8hpp_source.html#l00064">NodeType.hpp:64</a></div></div>
<div class="ttc" id="structchi_1_1NodeCompiler_html"><div class="ttname"><a href="structchi_1_1NodeCompiler.html">chi::NodeCompiler</a></div><div class="ttdoc">Helper to compile nodes. </div><div class="ttdef"><b>Definition:</b> <a href="NodeCompiler_8hpp_source.html#l00024">NodeCompiler.hpp:24</a></div></div>
<div class="ttc" id="structchi_1_1NodeType_html"><div class="ttname"><a href="structchi_1_1NodeType.html">chi::NodeType</a></div><div class="ttdoc">A generic node type. </div><div class="ttdef"><b>Definition:</b> <a href="NodeType_8hpp_source.html#l00019">NodeType.hpp:19</a></div></div>
<div class="ttc" id="structchi_1_1NodeType_html_adf8b95a4dc2a7a5253a71624a5d59ab3"><div class="ttname"><a href="structchi_1_1NodeType.html#adf8b95a4dc2a7a5253a71624a5d59ab3">chi::NodeType::nodeInstance</a></div><div class="ttdeci">NodeInstance * nodeInstance() const</div><div class="ttdoc">Get the node instance. </div><div class="ttdef"><b>Definition:</b> <a href="NodeType_8cpp_source.html#l00052">NodeType.cpp:52</a></div></div>
<div class="ttc" id="structchi_1_1Context_html"><div class="ttname"><a href="structchi_1_1Context.html">chi::Context</a></div><div class="ttdoc">The class that handles the loading, creation, storing, and compilation of modules It also stores a LL...</div><div class="ttdef"><b>Definition:</b> <a href="Context_8hpp_source.html#l00055">Context.hpp:55</a></div></div>
<div class="ttc" id="structchi_1_1NodeType_html_adad3e5e61bf72247980f1faac1407168"><div class="ttname"><a href="structchi_1_1NodeType.html#adad3e5e61bf72247980f1faac1407168">chi::NodeType::NodeType</a></div><div class="ttdeci">NodeType(ChiModule &amp;mod, std::string name={}, std::string description={})</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> <a href="NodeType_8cpp_source.html#l00009">NodeType.cpp:9</a></div></div>
<div class="ttc" id="structchi_1_1ChiModule_html"><div class="ttname"><a href="structchi_1_1ChiModule.html">chi::ChiModule</a></div><div class="ttdoc">An abstract class that represents a module of code in Chigraph Can be compiled to a llvm::Module...</div><div class="ttdef"><b>Definition:</b> <a href="ChiModule_8hpp_source.html#l00024">ChiModule.hpp:24</a></div></div>
<div class="ttc" id="structchi_1_1NodeType_html_a1b28b4ea8dc3536633c72dbcc107c5c0"><div class="ttname"><a href="structchi_1_1NodeType.html#a1b28b4ea8dc3536633c72dbcc107c5c0">chi::NodeType::setExecOutputs</a></div><div class="ttdeci">void setExecOutputs(std::vector&lt; std::string &gt; newOutputs)</div><div class="ttdoc">Set the exec outputs for the NodeType. </div><div class="ttdef"><b>Definition:</b> <a href="NodeType_8cpp_source.html#l00033">NodeType.cpp:33</a></div></div>
<div class="ttc" id="structchi_1_1NodeType_html_a8930cb5b0eeb371ddd5f6201d415cce8"><div class="ttname"><a href="structchi_1_1NodeType.html#a8930cb5b0eeb371ddd5f6201d415cce8">chi::NodeType::setDataOutputs</a></div><div class="ttdeci">void setDataOutputs(std::vector&lt; NamedDataType &gt; newOutputs)</div><div class="ttdoc">Set the data outputs for the NodeType. </div><div class="ttdef"><b>Definition:</b> <a href="NodeType_8cpp_source.html#l00024">NodeType.cpp:24</a></div></div>
<div class="ttc" id="structchi_1_1NodeType_html_aa56443539eb98affe4f99ead153602b6"><div class="ttname"><a href="structchi_1_1NodeType.html#aa56443539eb98affe4f99ead153602b6">chi::NodeType::setExecInputs</a></div><div class="ttdeci">void setExecInputs(std::vector&lt; std::string &gt; newInputs)</div><div class="ttdoc">Set the exec inputs for the NodeType. </div><div class="ttdef"><b>Definition:</b> <a href="NodeType_8cpp_source.html#l00029">NodeType.cpp:29</a></div></div>
<div class="ttc" id="structchi_1_1NodeType_html_a0e5eb5e2862761cd67f3ff4761175dd5"><div class="ttname"><a href="structchi_1_1NodeType.html#a0e5eb5e2862761cd67f3ff4761175dd5">chi::NodeType::pure</a></div><div class="ttdeci">bool pure()</div><div class="ttdoc">Get if this node is pure. </div><div class="ttdef"><b>Definition:</b> <a href="NodeType_8hpp_source.html#l00086">NodeType.hpp:86</a></div></div>
<div class="ttc" id="structchi_1_1NodeType_html_a81a3e2d37acdb057c11282d3e1ea6bc1"><div class="ttname"><a href="structchi_1_1NodeType.html#a81a3e2d37acdb057c11282d3e1ea6bc1">chi::NodeType::setName</a></div><div class="ttdeci">void setName(std::string newName)</div><div class="ttdoc">Set the name of the type. </div><div class="ttdef"><b>Definition:</b> <a href="NodeType_8cpp_source.html#l00054">NodeType.cpp:54</a></div></div>
<div class="ttc" id="structchi_1_1NodeType_html_af39c95eff6c77ff04c049cbad9c787aa"><div class="ttname"><a href="structchi_1_1NodeType.html#af39c95eff6c77ff04c049cbad9c787aa">chi::NodeType::~NodeType</a></div><div class="ttdeci">virtual ~NodeType()</div><div class="ttdoc">Destructor. </div></div>
<div class="ttc" id="structchi_1_1NodeType_html_a7d2edfc21ff54a1ff8ad98fffb969268"><div class="ttname"><a href="structchi_1_1NodeType.html#a7d2edfc21ff54a1ff8ad98fffb969268">chi::NodeType::dataInputs</a></div><div class="ttdeci">const std::vector&lt; NamedDataType &gt; &amp; dataInputs() const</div><div class="ttdoc">Get the data inputs for the node. </div><div class="ttdef"><b>Definition:</b> <a href="NodeType_8hpp_source.html#l00073">NodeType.hpp:73</a></div></div>
<div class="ttc" id="namespacechi_html"><div class="ttname"><a href="namespacechi.html">chi</a></div><div class="ttdoc">The namespace where chigraph lives. </div><div class="ttdef"><b>Definition:</b> <a href="BitcodeParser_8hpp_source.html#l00012">BitcodeParser.hpp:12</a></div></div>
<div class="ttc" id="structchi_1_1NodeType_html_a7031e3c04e9a0227b09f8f854ce8b7f9"><div class="ttname"><a href="structchi_1_1NodeType.html#a7031e3c04e9a0227b09f8f854ce8b7f9">chi::NodeType::qualifiedName</a></div><div class="ttdeci">std::string qualifiedName() const</div><div class="ttdoc">Get the qualified name of the node type, like module.name():name() </div><div class="ttdef"><b>Definition:</b> <a href="NodeType_8cpp_source.html#l00017">NodeType.cpp:17</a></div></div>
<div class="ttc" id="structchi_1_1NodeType_html_a9de5373607ac5fb322665c487010ecf2"><div class="ttname"><a href="structchi_1_1NodeType.html#a9de5373607ac5fb322665c487010ecf2">chi::NodeType::clone</a></div><div class="ttdeci">virtual std::unique_ptr&lt; NodeType &gt; clone() const =0</div><div class="ttdoc">Clones the type. </div></div>
<div class="ttc" id="structchi_1_1Result_html"><div class="ttname"><a href="structchi_1_1Result.html">chi::Result</a></div><div class="ttdoc">The result object, used for identifiying errors with good diagnostics. </div><div class="ttdef"><b>Definition:</b> <a href="Result_8hpp_source.html#l00072">Result.hpp:72</a></div></div>
<div class="ttc" id="structchi_1_1NodeType_html_ac6662ce1a327258cd1f879b63cfbfa06"><div class="ttname"><a href="structchi_1_1NodeType.html#ac6662ce1a327258cd1f879b63cfbfa06">chi::NodeType::codegen</a></div><div class="ttdeci">virtual Result codegen(NodeCompiler &amp;compiler, llvm::BasicBlock &amp;codegenInto, size_t execInputID, const llvm::DebugLoc &amp;nodeLocation, const std::vector&lt; llvm::Value *&gt; &amp;io, const std::vector&lt; llvm::BasicBlock *&gt; &amp;outputBlocks)=0</div><div class="ttdoc">A virtual function that is called when this node needs to be called. </div></div>
<div class="ttc" id="structchi_1_1NodeType_html_a10040e688128ae57832b5d74f877d7f8"><div class="ttname"><a href="structchi_1_1NodeType.html#a10040e688128ae57832b5d74f877d7f8">chi::NodeType::setDataInputs</a></div><div class="ttdeci">void setDataInputs(std::vector&lt; NamedDataType &gt; newInputs)</div><div class="ttdoc">Set the data inputs for the NodeType. </div><div class="ttdef"><b>Definition:</b> <a href="NodeType_8cpp_source.html#l00019">NodeType.cpp:19</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_97aefd0d527b934f1d99a682da8fe6a9.html">lib</a></li><li class="navelem"><a class="el" href="dir_a2d5e495f4b604d04f57d90095a59dd6.html">core</a></li><li class="navelem"><a class="el" href="dir_a979adfa99d5a8626731f83d5067598b.html">include</a></li><li class="navelem"><a class="el" href="dir_afbc2aa4d9616322ddf4041ba4f8ade6.html">chi</a></li><li class="navelem"><a class="el" href="NodeType_8hpp.html">NodeType.hpp</a></li>
    <li class="footer">Generated on Sat Sep 16 2017 17:41:35 for chigraph by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
